<template>
	<view class="find-trendsdetail">
		<view class="find-trendsdetail-content">
			<view class="find-trendsdetail-main">
				<view class="find-trendsdetail-main-header u-flex">
					<view class="find-trendsdetail-main-header-ava">
						<image :src="info.userinfo.avatar || 'https://picx.zhimg.com/v2-454fe8ff94db42421f409968a6f4e780_l.jpg?source=5a24d060'" style="width: 96rpx;height: 96rpx;" mode=""></image>
					</view>
					<view class="find-trendsdetail-main-header-name">
						<view class="find-trendsdetail-main-header-name-top">
							{{ info.userinfo.nickname }}
							<image :src="info.userinfo.gender ? 'https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/boy.png' : 'https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/girl.png'"
								style="width: 36rpx;height: 28rpx;margin-left: 8rpx;" mode=""></image>
						</view>
						<view class="find-trendsdetail-main-header-name-down">
							<text v-show="info.userinfo.year">{{ info.userinfo.year }}年</text> <text
								v-show="info.userinfo.education">· {{ info.userinfo.education }}</text> <text
								v-show="info.userinfo.job">· {{ info.userinfo.job }}</text>
							<text v-show="info.userinfo.now_home">· {{ info.userinfo.now_home }}</text>
						</view>
					</view>
					<view class="find-trendsdetail-main-header-view u-flex">
						<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/find/see.png"
							style="width: 32rpx;height: 32rpx;margin-right: 4rpx;display: block;" mode=""></image>
						<view class="">
							<!-- 1.7w -->
							{{ info.look_sum }}
						</view>
					</view>
				</view>
				<view class="find-trendsdetail-main-content u-flex">
					<view class="conents">
						{{ info.content.content }}
					</view>
					<view
						:class="['find-trendsdetail-main-content-images', info.content && info.content.images && info.content.images.length != 0 && info.content.images.length > 1 ? 'img1' : 'img2']">
						<image :src="imgs" v-for="(imgs, index) in info.content.images" :key="index" @click="previewImg(index)"
							:mode="info.content && info.content.images && info.content.images.length != 0 && info.content.images.length > 1 ? 'aspectFill' : 'widthFix'"
							style="display: block;">
						</image>
					</view>
					<!-- <image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/demo.png" mode="widthFix" style="display: block;"></image> -->
					<view class="find-trendsdetail-main-content-tags u-flex" v-if="info.content.subject_talk">
						<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/find/tags.png" mode=""></image>
						<view class="">
							{{ info.content.subject_talk[0].title }}
						</view>
					</view>
				</view>
				<view class="find-trendsdetail-main-footer">
					<view class="find-trendsdetail-main-footer-time">
						<!-- 3小时前 -->
						<!-- {{ info.updated_at }} -->
						{{ created_at }}
					</view>
					<view class="find-trendsdetail-main-footer-main  u-flex u-row-between">
						<view class="find-trendsdetail-main-footer-main-share u-flex">
							<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/index/share.png" mode=""></image>
							分享
						</view>
						<view class=" u-flex">
							<view class="find-trendsdetail-main-footer-main-like u-flex">
								<image
									:src="info.is_help == 1 ? 'https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/index/like-act.png' : 'https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/index/like.png'"
									mode=""></image>{{ info.help_count }}
							</view>
							<view class="find-trendsdetail-main-footer-main-chat u-flex">
								<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/index/chat.png" mode=""></image>{{ chatTotal }}
							</view>
							<view class="find-trendsdetail-main-footer-main-more u-flex"
								@click="reportType = 2, reportShow = true">
								<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/index/more.png"
									style="width: 40rpx;height: 40rpx;margin-right: 0;" mode=""></image>
							</view>
						</view>
					</view>
				</view>
				<view class="find-trendsdetail-main-person u-flex" v-if="info.friends && info.friends.length != 0">
					<view class="find-trendsdetail-main-person-ava">
						<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/demo.png" mode=""></image>
						<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/demo.png" mode=""></image>
						<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/demo.png" mode=""></image>
					</view>
					<view class="find-trendsdetail-main-person-text">
						772人互动
					</view>
				</view>
			</view>
			<view class="find-trendsdetail-warm">
				请勿在评论中违规发言，可举报
			</view>
			<view class="find-trendsdetail-talk">
				<view class="find-trendsdetail-talk-title">
					全部评论 {{ chatTotal }}
				</view>
				<!-- <view class="find-trendsdetail-talk-item u-flex" v-for="(item, index) in [1, 1, 1, 1]" :key="index">

					<view class="find-trendsdetail-talk-item-ava">
						<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/demo.png" style="width: 80rpx;height: 80rpx;" mode=""></image>
					</view>
					<view class="find-trendsdetail-talk-item-info">
						<view class="find-trendsdetail-talk-item-info-header u-flex">
							<view class="find-trendsdetail-talk-item-info-header-left ">
								<view class="find-trendsdetail-talk-item-info-header-left-name">
									今晚打老虎
									<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/boy.png"
										style="width: 36rpx;height: 28rpx;margin-left: 12rpx;" mode="">
									</image>
								</view>
								<view class="find-trendsdetail-talk-item-info-header-left-dsc">
									94年 · 本科 · 金融 · 北京
								</view>
							</view>
							<view class="find-trendsdetail-talk-item-info-header-right"
								@click="reportType = 1, reportShow = true">
								<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/index/more.png" style="width: 48rpx;height: 48rpx;" mode="">
								</image>
							</view>
						</view>
						<view class="find-trendsdetail-talk-item-info-content">
							早呀，美好的一天又开始咯！
						</view>
						<view class="find-trendsdetail-talk-item-info-footer u-flex">
							<view class="find-trendsdetail-talk-item-info-footer-time">
								1小时前
							</view>
							<view class="find-trendsdetail-talk-item-info-footer-like u-flex">
								<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/index/like.png" style="width: 28rpx;height: 28rpx;" mode="">
								</image>
								<view class="">
									赞
								</view>
							</view>
						</view>
						<view class="find-trendsdetail-talk-item-info-callback u-flex" v-for="(item, index) in [1, 1]"
							:key="index">
							<view class="find-trendsdetail-talk-item-info-callback-ava">
								<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/demo.png" style="width: 40rpx;height: 40rpx;" mode="">
								</image>
							</view>
							<view class="find-trendsdetail-talk-item-info-callback-info">
								<view class="find-trendsdetail-talk-item-info-callback-info-header u-flex">
									<view class="find-trendsdetail-talk-item-info-callback-info-header-left ">
										<view class="find-trendsdetail-talk-item-info-callback-info-header-left-name">
											今晚打老虎
											<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/boy.png"
												style="width: 36rpx;height: 28rpx;margin-left: 12rpx;" mode="">
											</image>
										</view>
									</view>
									<view class="find-trendsdetail-talk-item-info-callback-info-header-right">

									</view>
								</view>
								<view class="find-trendsdetail-talk-item-info-callback-info-content">
									早呀，美好的1一天又开始咯！
								</view>
								<view class="find-trendsdetail-talk-item-info-callback-info-footer u-flex">
									<view class="find-trendsdetail-talk-item-info-callback-info-footer-time">
										1小时前
									</view>
									<view class="find-trendsdetail-talk-item-info-callback-info-footer-like u-flex">
										<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/index/like.png" style="width: 28rpx;height: 28rpx;"
											mode="">
										</image>
										<view class="">
											赞
										</view>
									</view>
								</view>
							</view>
						</view>
					</view>
				</view> -->
				<view style="background: #F9FCFE;border-radius: 16rpx 16rpx 16rpx 16rpx;padding: 28rpx;">
					<!-- <view class="find-trendsdetail-talk-item u-flex" v-for="(item, index) in commentList" :key="index">
						<view class="find-trendsdetail-talk-item-title" v-show="item.reply != 0">{{ item.replyInfo.nickname
						}}</view>
						<view class="find-trendsdetail-talk-item-desc" v-show="item.reply != 0">回复</view>
						<view class="find-trendsdetail-talk-item-title">{{ item.nickname || '昵称' }}：</view>
						<view class="find-trendsdetail-talk-item-desc">{{ item.content }}</view>
						<view class="times">{{ item.time }}</view>
					</view> -->
					<view class="find-trendsdetail-talk-item" v-for="(item, index) in commentList" :key="index">
						<view class="find-trendsdetail-talk-item-avatar">
							<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/demo.png" mode="aspectFill"></image>
						</view>
						<view class="find-trendsdetail-talk-item-main">
							<view class="find-trendsdetail-talk-item-main-header">
								<view class="find-trendsdetail-talk-item-main-header-name">{{ item.replyInfo.nickname ||
									'评论人' }}</view>
								<view class="find-trendsdetail-talk-item-main-header-time">{{ item.time }}</view>
							</view>
							<view class="find-trendsdetail-talk-item-main-content">
								<view class="find-trendsdetail-talk-item-main-content-desc">{{ item.reply != 0 ? '回复' : '' }} <text v-show="item.reply != 0">{{ item.nickname
									|| '昵称' }}：</text> {{ item.content }}</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="find-trendsdetail-footer u-flex">
			<view class="find-trendsdetail-footer-left u-flex">
				<view class="find-trendsdetail-footer-left-item">
					<button open-type="share" class="column baidu-kefu" hover-class="none">
						<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/index/share.png" mode=""></image>
						<text class="">
							分享
						</text>
					</button>
				</view>
				<view class="find-trendsdetail-footer-left-item" @click.stop="setLike()">
					<image
						:src="info.is_help == 1 ? 'https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/index/like-act.png' : 'https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/index/like.png'"
						mode=""></image>
					<text class="">
						{{ info.help_count }}
					</text>
				</view>
				<view class="find-trendsdetail-footer-left-item">
					<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/index/chat.png" mode=""></image>
					<text class="">
						{{ chatTotal }}
					</text>
				</view>
			</view>
			<view class="find-trendsdetail-footer-right" @click="commentShow = true">
				说点什么吧～
			</view>
		</view>
		<!-- 评论 -->
		<u-popup v-model="commentShow" mode="bottom" border-radius="20">
			<view class="commentPopup">
				<textarea v-model="content" :cursor-spacing="cursorSpacing"
					:placeholder-style="`font-size: 28rpx;color:${content.length == 0 ? '#8A9199;' : '#2E3033;'}`"
					placeholder="说点什么吧～"></textarea>
				<view class="btns">
					<image v-if="content.length != 0" class="btns-img" src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/btn/255x36.png" mode="">
					</image>
					<view class="btns-con" :style="content.length == 0 ? 'color: #8A9199;' : 'color: #FFFFFF;'"
						@click="content.length == 0 ? '' : setTalk()">
						发送
					</view>
				</view>
			</view>
		</u-popup>
		<!-- 举报评论/动态 -->
		<u-popup v-model="reportShow" mode="bottom" border-radius="20">
			<view class="reportPopup">
				<view class="reportItem" @click="reportFun(reportType == 1 ? 3 : 1)">
					举报该{{ reportType == 1 ? '评论' : '动态' }}
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
export default {
	// 组件名称
	name: 'demo',
	// 组件参数 接收来自父组件的数据
	props: {
		created_at: {
			type: String,
			default: ''
		}
	},
	// 局部注册的组件,import引入的组件需要注入到对象中才能使用
	components: {},
	// 组件状态值
	data() {
		return {
			reportShow: false, // 举报的弹窗
			commentShow: false, // 发表评论的弹窗
			reportType: 1, // 举报类型 1评论 2动态
			cursorSpacing: 20,
			info: {
				userinfo: {
					avatar: '',
					nickname: '',
					gender: 0,
					year: '',
					education: '',
					job: '',
					now_home: ''
				},
				look_sum: 0,
				updated_at: '',
				content: {
					content: '',
					images: [],
					subject_talk: []
				},
				help_count: ''
			},
			chatTotal: 0, // 评论总数
			content: '',
			replyId: '', // 被回复的人id
			page: 1,
			last_page: 1,
			commentList: []
		}
	},
	// 计算属性
	computed: {},
	// 侦听器
	watch: {},
	// 组件方法
	methods: {
		// 预览图片单张
		previewImg(index) {
			let _this = this;
			uni.previewImage({
				current: index,
				urls: this.info.content.images
			});
		},
		// 获取动态详情
		getInfo(query) {
			this.$http('find.trendsInfo', {
				id: this.$Route.query.id
			}).then(res => {
				console.log(res)
				this.info = res.data
			})
		},
		// 获取评论列表
		getTalkList() {
			this.$http('find.commentList', {
				id: this.$Route.query.id,
				page: this.page
			}).then(res => {
				console.log(res)
				if (this.page == 1) this.commentList = []
				this.commentList = this.commentList.concat(res.data.data || [])
				this.last_page = res.data.last_page
				this.chatTotal = res.data.total
				uni.stopPullDownRefresh();
			})
		},
		// 设置点赞动态
		setLike() {
			this.$http('find.helpComment', {
				id: this.$Route.query.id
			}).then(res => {
				console.log(res)
				this.info.is_help = this.info.is_help == 1 ? 0 : 1
				this.info.help_count = this.info.is_help == 0 ? this.info.help_count - 1 : this.info.help_count + 1
			})
		},
		// 评论动态
		setTalk() {
			if (!this.content) {
				this.$toast('请输入评论内容')
				return
			}
			this.$http('find.comment', {
				id: this.$Route.query.id,
				content: this.content,
				reply: this.replyId
			}).then(res => {
				console.log(res)
				this.content = ''
				this.replyId = ''
				this.commentShow = false
				this.getTalkList()
			})
		},
		// 举报
		reportFun(type) {
			this.$Router.push({ path: '/pages/find/find-report?type=' + type + '&id=' + this.$Route.query.id })
		},
		// 微信分享

	},
	onLoad(option) {
		// console.log(option, '2222', this.$Route.query)
		this.getInfo()
		this.getTalkList()
	},
	onPullDownRefresh() {
		// console.log(11, '111')
		this.page = 1
		this.getInfo()
		this.getTalkList()
	},
	onReachBottom() {
		// console.log(11, '111')
		if (this.page < this.last_page) {
			this.page += 1
			this.getTalkList()
		}
	},
	// 以下是生命周期钩子   注：没用到的钩子请自行删除
	/**
	 * 在实例初始化之后，组件属性计算之前，如data属性等
	 */
	beforeCreate() { },
	/**
	 * 组件实例创建完成，属性已绑定，但DOM还未生成，$ el属性还不存在
	 */
	created() { },
	/**
	 * 在挂载开始之前被调用：相关的 render 函数首次被调用。
	 */
	beforeMount() { },
	/**
	 * el 被新创建的 vm.$ el 替换，并挂载到实例上去之后调用该钩子。
	 * 如果 root 实例挂载了一个文档内元素，当 mounted 被调用时 vm.$ el 也在文档内。
	 */
	mounted() { },
	/**
	 * 数据更新时调用，发生在虚拟 DOM 重新渲染和打补丁之前。
	 * 你可以在这个钩子中进一步地更改状态，这不会触发附加的重渲染过程。
	 */
	beforeUpdate() { },
	/**
	 * 由于数据更改导致的虚拟 DOM 重新渲染和打补丁，在这之后会调用该钩子。
	 * 当这个钩子被调用时，组件 DOM 已经更新，所以你现在可以执行依赖于 DOM 的操作。
	 */
	updated() { },
	/**
	 * keep-alive 组件激活时调用。 仅针对keep-alive 组件有效
	 */
	activated() { },
	/**
	 * keep-alive 组件停用时调用。 仅针对keep-alive 组件有效
	 */
	deactivated() { },
	/**
	 * 实例销毁之前调用。在这一步，实例仍然完全可用。
	 */
	beforeDestroy() { },
	/**
	 * Vue 实例销毁后调用。调用后，Vue 实例指示的所有东西都会解绑定，
	 * 所有的事件监听器会被移除，所有的子实例也会被销毁。
	 */
	destroyed() { }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<!--使用了scoped属性之后，父组件的style样式将不会渗透到子组件中，-->
<!--然而子组件的根节点元素会同时被设置了scoped的父css样式和设置了scoped的子css样式影响，-->
<style scoped lang="scss">
.find-trendsdetail {
	position: relative;
	height: 100%;

	&-content {
		height: calc(100%);
		// overflow-y: auto;
		padding-bottom: calc(constant(safe-area-inset-bottom) + 104rpx);
		padding-bottom: calc(env(safe-area-inset-bottom) + 104rpx);
	}

	&-main {
		padding: 0 32rpx;

		&-header {
			margin-top: 32rpx;

			&-ava {
				width: 96rpx;
				margin-right: 20rpx;

				image {
					border-radius: 50%;
				}
			}

			&-name {
				flex: 1;

				&-top {
					font-size: 32rpx;
					font-family: PingFang SC-Bold, PingFang SC;
					font-weight: bold;
					color: #2E3033;
				}

				&-down {
					font-size: 24rpx;
					font-family: PingFang SC-Medium, PingFang SC;
					color: #737980;
				}
			}

			&-view {
				// width: 180rpx;
				font-size: 24rpx;
				font-family: PingFang SC-Medium, PingFang SC;
				color: #8A9199;
				justify-content: flex-end;
			}
		}

		&-content {
			margin: 20rpx 0;
			flex-direction: column;
			align-items: flex-start;

			// image {
			// 	margin-top: 20rpx;
			// 	width: 200rpx;
			// 	border-radius: 16rpx;
			// }
			.conents {
				margin-bottom: 20rpx;
			}

			&-images {


				image {
					width: 200rpx;
					height: 200rpx;
					margin-right: 10rpx;
					border-radius: 16rpx;
					margin-bottom: 10rpx;
				}

				image:nth-child(3n) {
					margin-right: 0;
				}
			}

			.img1 {
				display: flex;
				flex-wrap: wrap;
			}

			.img2 {}

			&-tags {
				min-width: 160rpx;
				height: 48rpx;
				background: #F1F6FF;
				border-radius: 31rpx;
				font-size: 24rpx;
				font-family: PingFang SC-Medium, PingFang SC;
				font-weight: 500;
				color: #0085FF;
				padding: 0 16rpx;
				margin-top: 32rpx;

				image {
					margin-top: 0;
					width: 28rpx;
					height: 28rpx;
				}
			}
		}

		&-footer {
			padding-bottom: 32rpx;
			border-bottom: 1rpx solid #F5F5F5FF;

			&-time {
				margin: 32rpx 0;
				font-size: 24rpx;
				font-family: PingFang SC-Medium, PingFang SC;
				font-weight: 400;
				color: #737980;
			}

			&-main {
				width: 100%;
				font-size: 28rpx;
				font-family: PingFang SC-Medium, PingFang SC;
				font-weight: 400;
				color: #737980;

				image {
					width: 40rpx;
					height: 40rpx;
					display: block;
					margin-right: 8rpx;
				}

				&-chat {
					margin-left: 60rpx;
				}

				&-more {
					margin-left: 60rpx;
				}
			}
		}

		&-person {
			padding: 32rpx 0;
			justify-content: space-between;

			&-ava {
				position: relative;

				image {
					border-radius: 50%;
					width: 48rpx;
					height: 48rpx;
					border: 2rpx solid #FFFFFF;
					position: relative;
					left: 20rpx;
					margin-left: -20rpx;
				}
			}

			&-text {
				font-size: 24rpx;
				font-family: PingFang SC-Medium, PingFang SC;
				font-weight: 500;
				color: #8A9199;
			}
		}
	}

	&-warm {
		height: 60rpx;
		width: 100%;
		background: #F5F5F5FF;
		font-size: 24rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		color: #8A9199;
		padding: 0 32rpx;
		line-height: 60rpx;
	}

	&-talk {
		padding: 32rpx 32rpx 0;
		padding-bottom: calc(constant(safe-area-inset-bottom) + 114rpx);
		padding-bottom: calc(env(safe-area-inset-bottom) + 114rpx);

		&-title {
			font-size: 28rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #2E3033;

			margin-bottom: 16rpx;
		}

		&-item:last-child {
			margin-bottom: 0;
		}

		&-item {
			// align-items: flex-start;
			// margin-top: 32rpx;
			// padding-bottom: 32rpx;
			// border-bottom: 1rpx solid #F5F5F5FF;
			// -------
			display: flex;
			// align-items: center;
			margin-bottom: 12rpx;

			&-avatar {
				width: 68rpx;
				height: 68rpx;
				margin-right: 20rpx;
				margin-top: 6rpx;

				image {
					width: 100%;
					height: 100%;
					display: block;
					border-radius: 10rpx;
				}
			}

			&-main {
				flex: 1;
				// display: flex;

				&-header {
					display: flex;
					align-items: center;
					justify-content: space-between;
					margin-bottom: 8rpx;

					&-name {
						font-size: 26rpx;
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						color: #4DC6FF;
					}

					&-time {
						font-size: 22rpx;
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						color: #999999;
					}
				}

				&-content {
					&-desc {
						font-size: 26rpx;
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						color: #2E3033;

						text {
							color: #4DC6FF;
							margin-left: 6rpx;
						}
					}
				}
			}

			// &-title {
			// 	font-size: 26rpx;
			// 	font-family: PingFang SC, PingFang SC;
			// 	font-weight: 400;
			// 	color: #4DC6FF;
			// }

			// &-desc {
			// 	font-size: 26rpx;
			// 	font-family: PingFang SC, PingFang SC;
			// 	font-weight: 400;
			// 	color: #2E3033;
			// }

			// &-ava {
			// 	width: 80rpx;
			// 	margin-right: 20rpx;

			// 	image {
			// 		border-radius: 50%;
			// 	}
			// }

			// &-info {
			// 	flex: 1;

			// 	&-header {
			// 		justify-content: space-between;

			// 		&-left {
			// 			&-name {
			// 				font-size: 24rpx;
			// 				font-family: PingFang SC-Bold, PingFang SC;
			// 				font-weight: bold;
			// 				color: #2E3033;
			// 				margin-bottom: 8rpx;

			// 			}

			// 			&-dsc {
			// 				font-size: 20rpx;
			// 				font-family: PingFang SC-Medium, PingFang SC;
			// 				font-weight: 500;
			// 				color: #737980;
			// 			}
			// 		}
			// 	}

			// 	&-content {
			// 		margin-top: 20rpx;
			// 		font-size: 28rpx;
			// 		font-family: PingFang SC-Medium, PingFang SC;
			// 		font-weight: 500;
			// 		color: #2E3033;
			// 	}

			// 	&-footer {
			// 		margin-top: 8rpx;
			// 		justify-content: space-between;

			// 		&-time {
			// 			font-size: 20rpx;
			// 			font-family: PingFang SC-Medium, PingFang SC;
			// 			color: #8A9199;

			// 		}

			// 		&-like {
			// 			font-size: 20rpx;
			// 			font-family: PingFang SC-Medium, PingFang SC;
			// 			color: #737980;
			// 		}
			// 	}

			// 	&-callback {
			// 		align-items: flex-start;
			// 		margin-top: 32rpx;

			// 		&-ava {
			// 			width: 40rpx;
			// 			margin-right: 10rpx;

			// 			image {
			// 				border-radius: 50%;
			// 			}
			// 		}

			// 		&-info {
			// 			flex: 1;

			// 			&-header {
			// 				align-items: flex-start;

			// 				&-left {
			// 					&-name {
			// 						font-size: 24rpx;
			// 						font-family: PingFang SC-Medium, PingFang SC;
			// 						color: #5C6166;
			// 						margin-bottom: 8rpx;

			// 					}

			// 					&-dsc {
			// 						font-size: 20rpx;
			// 						font-family: PingFang SC-Medium, PingFang SC;
			// 						font-weight: 500;
			// 						color: #737980;
			// 					}
			// 				}
			// 			}

			// 			&-content {
			// 				margin-top: 20rpx;
			// 				font-size: 28rpx;
			// 				font-family: PingFang SC-Medium, PingFang SC;
			// 				font-weight: 500;
			// 				color: #2E3033;
			// 			}

			// 			&-footer {
			// 				margin-top: 8rpx;
			// 				justify-content: space-between;

			// 				&-time {
			// 					font-size: 20rpx;
			// 					font-family: PingFang SC-Medium, PingFang SC;
			// 					color: #8A9199;

			// 				}

			// 				&-like {
			// 					font-size: 20rpx;
			// 					font-family: PingFang SC-Medium, PingFang SC;
			// 					color: #737980;
			// 				}
			// 			}
			// 		}

			// 	}
			// }
		}
	}

	&-footer {
		// height: 164rpx;
		background: #FFFFFF;
		width: 100%;
		position: fixed;
		bottom: 0;
		border-top: 1rpx solid #F4F4F4;
		// align-items: flex-start;
		padding: 10rpx 32rpx;
		padding-bottom: calc(constant(safe-area-inset-bottom) + 10rpx);
		padding-bottom: calc(env(safe-area-inset-bottom) + 10rpx);

		&-left {
			// flex: 2;
			flex-shrink: 0;

			&-item {
				text-align: center;
				flex: 1;
				margin-right: 60rpx;

				text {
					font-size: 24rpx !important;
					font-family: PingFang SC-Medium, PingFang SC;
					font-weight: 400 !important;
					color: #737980 !important;
					// 禁止文本换行
					white-space: nowrap;
				}

				image {
					width: 40rpx;
					height: 40rpx;
					display: block;
				}
			}
		}

		&-right {
			// flex: 3;
			flex: 1;
			height: 64rpx;
			background: #F5F5F5;
			border-radius: 35rpx;
			font-size: 24rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #8A9199;
			line-height: 64rpx;
			padding: 0 32rpx;

			// margin-top: 8rpx;
			input {
				height: 100%;
			}
		}
	}
}

.commentPopup {
	padding: 32rpx 32rpx 0;
	padding-bottom: calc(constant(safe-area-inset-bottom) + 28rpx);
	padding-bottom: calc(env(safe-area-inset-bottom) + 28rpx);

	textarea {
		width: calc(100% - 40rpx);
		height: 160rpx;
		background: #F4F4F4;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		padding: 20rpx;
	}

	.btns {
		position: relative;
		margin: 32rpx auto 0;
		width: 510rpx;
		height: 72rpx;
		background: #F5F5F5;
		border-radius: 32rpx 32rpx 32rpx 32rpx;

		&-img {
			width: 100%;
			height: 100%;
		}

		&-con {
			width: 100%;
			height: 100%;
			position: absolute;
			top: 0;
			left: 0;
			font-size: 24rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			line-height: 72rpx;
			text-align: center;
		}
	}
}
</style>
